unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, OleCtrls, ShockwaveFlashObjects_TLB, ExtCtrls;

type
  TForm1 = class(TForm)
    ShockwaveFlash1: TShockwaveFlash;
    procedure FormShow(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure FormResize(Sender: TObject);
  private

  public

  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
//  WindowState:=wsMaximized;
end;

procedure TForm1.FormResize(Sender: TObject);
begin
  ShockwaveFlash1.SetBounds(0,0,Self.Width,Self.Height);
end;

procedure TForm1.FormShow(Sender: TObject);
var
  ATemp:string;
begin
  ATemp:=ExtractFilePath(ParamStr(0));
  Self.ShockwaveFlash1.Movie:=ATemp+'Example_005.swf';
  Self.ShockwaveFlash1.Loop:=true;
  Self.ShockwaveFlash1.Play;
end;

end.
